package net.yla.smartbus.core.constants;

/**
 * 缓存Key前缀
 *
 * @author ZengXiaoLiang
 **/
public class CacheKeyPrefix {

    public static final String SEPARATOR = ":";

    static final String SYS = "SYS";
    /**
     * 身份
     */
    public static final String IDENTITY = "IDENTITY" + SEPARATOR;
    /**
     * 用户id
     */
    public static final String USER_ID = "USER_ID" + SEPARATOR;
    /**
     * 枚举类型
     */
    public static final String SYS_ENUM_NAME = SYS + SEPARATOR + "ENUM_NAME" + SEPARATOR;

    /**
     * 枚举类型 待新加个全部种类
     */
    public static final String SYS_ENUM_NAME_WITH_TOTAL = SYS + SEPARATOR + "ENUM_NAME_WITH_TOTAL" + SEPARATOR;

    /**
     * 手机号验证码时间显示前缀
     */
    public static final String PHONE_VALIDATE_CODE_TIME = "PHONE_VALIDATE_CODE_TIME";

    /**
     * 数字验证码
     */
    public static final String NUMBER_CODE_KEY = "NUMBER:CODE:";
    /**
     * 手机号验证码前缀
     */
    public static final String PHONE_VALIDATE_CODE = "PHONE_VALIDATE_CODE";
    /**
     * 邮箱验证码前缀
     */
    public static final String EMAIL_VALIDATE_CODE = "EMAIL_VALIDATE_CODE";
    /**
     * 地区码缓存前缀
     */
    public static final String RECRUITMENTPLATFORM_AREA_MAP_COUNTY_CODE = "RECRUITMENTPLATFORM_AREA_MAP_COUNTY_CODE:";
    /**
     * 扫码登录识别号
     */
    public static final String SCAN_LOGIN_NO = "SCAN_LOGIN_NO";
    /**
     * 登录用户tokenqianz
     */
    public static final String ADMIN_USER = "ADMIN_USER:";
    public static final String ACCOUNT_USER = "ACCOUNT_USER:";
    /**
     * 消息队列
     */
    public static final String MQ = "MQ";
    /**
     * 实时控制
     */
    public static final String REAL_TIME_CONTROL = MQ + SEPARATOR + "REAL_TIME_CONTROL" + SEPARATOR;
    /**
     * 计划任务
     */
    public static final String PLAN_TASK = MQ + SEPARATOR + "PLAN_TASK" + SEPARATOR;
    /**
     * 实时数据
     */
    public static final String REAL_DATA = "REAL_DATA";
    /**
     * GPS实时数据
     */
    public static final String REAL_DATA_GPS = REAL_DATA + SEPARATOR + "GPS" + SEPARATOR;
    /**
     * CAN实时数据
     */
    public static final String REAL_DATA_CAN = REAL_DATA + SEPARATOR + "CAN" + SEPARATOR;
    /**
     * alarm报警实时数据
     */
    public static final String REAL_DATA_ALARM = REAL_DATA + SEPARATOR + "ALARM" + SEPARATOR;
    /**
     * drange实时数据
     */
    public static final String REAL_DATA_DRANGE = REAL_DATA + SEPARATOR + "DRANGE" + SEPARATOR;
    /**
     * status实时数据
     */
    public static final String REAL_DATA_STATUS = REAL_DATA + SEPARATOR + "STATUS" + SEPARATOR;

    /*=============================================================================*/
    static final String CLIENT = "CLIENT";
    static final String ROAD = "ROAD";
    static final String PLAN = "PLAN";
    //系统标识:模块名称:方法名称:条件
    public static final String WAITCARUP = CLIENT + SEPARATOR + ROAD + SEPARATOR + "UPSTARTBUS" + SEPARATOR;
    public static final String WAITCARDOWN = CLIENT + SEPARATOR + ROAD + SEPARATOR + "DOWNSTARTBUS" + SEPARATOR;
    public static final String LINESTATUS = CLIENT + SEPARATOR + ROAD + SEPARATOR + "LINESTATUS" + SEPARATOR;
    public static final String BUSGENERAL = CLIENT + SEPARATOR + ROAD + SEPARATOR + "BUSGENERAL" + SEPARATOR;
    public static final String TCGRID = CLIENT + SEPARATOR + ROAD + SEPARATOR + "TCGRID" + SEPARATOR;
    public static final String LINEBUSSTATION = CLIENT + SEPARATOR + ROAD + SEPARATOR + "LINEBUSSTATION" + SEPARATOR;
    public static final String PLANALL = CLIENT + SEPARATOR + PLAN + SEPARATOR + "ALL" + SEPARATOR;

    public static final String GROUP = CLIENT + SEPARATOR + ROAD + SEPARATOR + "GROUP" + SEPARATOR;
    public static final String ROUTE = CLIENT + SEPARATOR + ROAD + SEPARATOR + "ROUTE" + SEPARATOR;
}
